package com.beerandjesus.sportofkings.handicapper.dao;

import java.sql.Connection;

/**
 * Date: Jun 8, 2012
 * Time: 1:02:42 PM
 */
public interface ConnectionManager {

    /**
     * Get a ready to use connection to the turf sire database
     * @return
     */
    Connection getTurfSireDatabaseConnection();

    /**
     * Get a ready to use connection to the jockey database
     * @return
     */
    Connection getJockeyDatabaseConnection();

    /**
     * Release a database connection
     * @param connection
     */
    void releaseConnection(Connection connection);

    /**
     * Initizlize the ConnectionManager
     */
    void init();
}
